package com.xydtech.rule.domain;

import com.xydtech.common.annotation.Excel;
import com.xydtech.common.core.domain.BaseEntity;
import io.swagger.annotations.ApiModelProperty;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;

/**
 * 规则要素组对象 rule_elements_group
 *
 * @author xydtech
 * @date 2024-06-06
 */
public class RuleElementsGroup extends BaseEntity {
    private static final long serialVersionUID = 1L;

    /**
     * 主键ID
     */
    private Long id;

    /**
     * 名称
     */
    @Excel(name = "名称")
    private String groupName;

    /** 组合编码 */
    @Excel(name = "组合编码")
    private String groupCode;

    /**
     * 法人机构
     */
    @Excel(name = "法人机构")
    private Long deptId;

    /**
     * 创建人Id
     */
    @Excel(name = "创建人Id")
    private Long userId;
    /** 归属机构 */
    @Excel(name = "归属机构", type = Excel.Type.EXPORT)
    @ApiModelProperty(notes = "归属机构")
    private String deptName;
    /**
     * 状态
     */
    @Excel(name = "状态")
    private String sts;

    /**
     * 计算公式
     */
    @Excel(name = "计算公式")
    private String ruleFormulas;

    public void setId(Long id) {
        this.id = id;
    }

    public Long getId() {
        return id;
    }

    public void setGroupName(String groupName) {
        this.groupName = groupName;
    }

    public String getGroupName() {
        return groupName;
    }

    public void setDeptId(Long deptId) {
        this.deptId = deptId;
    }

    public Long getDeptId() {
        return deptId;
    }

    public void setUserId(Long userId) {
        this.userId = userId;
    }

    public Long getUserId() {
        return userId;
    }

    public void setSts(String sts) {
        this.sts = sts;
    }

    public String getSts() {
        return sts;
    }

    public void setRuleFormulas(String ruleFormulas) {
        this.ruleFormulas = ruleFormulas;
    }

    public String getRuleFormulas() {
        return ruleFormulas;
    }
    public String getDeptName() {
        return deptName;
    }

    public void setDeptName(String deptName) {
        this.deptName = deptName;
    }

    public String getGroupCode() {
        return groupCode;
    }

    public void setGroupCode(String groupCode) {
        this.groupCode = groupCode;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this, ToStringStyle.MULTI_LINE_STYLE)
                .append("id", getId())
                .append("groupName", getGroupName())
                .append("deptId", getDeptId())
                .append("userId", getUserId())
                .append("createBy", getCreateBy())
                .append("createTime", getCreateTime())
                .append("sts", getSts())
                .append("remark", getRemark())
                .append("ruleFormulas", getRuleFormulas())
                .append("deptName", getDeptName())
                .append("groupCode", getGroupCode())
                .toString();
    }
}
